﻿@model double
<div id="overallRating">
    @{
        if (Model != 0)
        {
            for(int i=0; i < Model; i++){
                <img src="@Url.Content("~/Content/Images/Layouts/ModernLayout/filledStar.png")" alt="filledStar" width="25px;" height="25px;"/>  
            }
            for (int i = (int) Model; i < 5; i++)
            {
                <img src="@Url.Content("~/Content/Images/Layouts/ModernLayout/emptyStar.png")" alt="emptyStar" width="25px;" height="25px;"/>
            }
        }
        else
        {
            <span>No Rating</span>
        }
    }
</div>